package com.basic.emg.domain;

import com.basic.emg.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 应急物资
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(name="emergency_dispose")
public class EmergencyDispose extends BaseModel {

    @Id
    //@GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    //处置编号
    private String disposeRef;
    //启动日期
    private Date startDate;
    //事件性质：1预防性 2预警性 3应变性 4持续性
    private String eventNature;
    //启动应急预案
    private String startPlan;
    //预案类型
    private String planType;
    //参与队伍
    private String team;
    //处置内容
    private String content;
    //处置情况
    private String situation;
    //意见
    private String opinion;
    //文件地址
    private String filePath;
    //
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    //0未删除 1已删除
    private String delFlag;
    //記錄人員
    private String record;
    //記錄日期
    private Date recordDate;



}
